import { Router } from "./dep.ts";
import {index,getAllbooks,testGitlib,getBookbyId} from "./controller/books.ts";
import {socket} from "./controller/websocket.ts";
import {sendWorkerMessage} from "./controller/worker.ts";
const router = new Router();
router.get("/", index);
router.get("/book", getAllbooks);
router.get("/send",sendWorkerMessage);
router.get("/fetch", testGitlib);
router.get("/book/:id", getBookbyId);
router.get("/ws", socket);
export {router};